<html>
<head>
  <title>Solution Architecture - Login</title>
  <meta name="layout" content="main"/>
  <style type="text/css" media="screen">

  #nav {
    margin-top: 20px;
    margin-left: 30px;
    width: 228px;
    float: left;

  }

  .homePagePanel * {
    margin: 0px;
  }

  .homePagePanel .panelBody ul {
    list-style-type: none;
    margin-bottom: 10px;
  }

  .homePagePanel .panelBody h1 {
    text-transform: uppercase;
    font-size: 1.1em;
    margin-bottom: 10px;
  }

  .homePagePanel .panelBody {
    background: url(images/leftnav_midstretch.png) repeat-y top;
    margin: 0px;
    padding: 15px;
  }

  .homePagePanel .panelBtm {
    background: url(images/leftnav_btm.png) no-repeat top;
    height: 20px;
    margin: 0px;
  }

  .homePagePanel .panelTop {
    background: url(images/leftnav_top.png) no-repeat top;
    height: 11px;
    margin: 0px;
  }

  h2 {
    margin-top: 15px;
    margin-bottom: 15px;
    font-size: 1.2em;
  }

  #pageBody {
    margin-left: 280px;
    margin-right: 20px;
  }
  </style>
</head>
<body>
<div id="pageBody">
  <sec:ifLoggedIn>
    <li>
             <g:link controller="logout">Logout</g:link>
           </li>
         </sec:ifLoggedIn>
  <sec:ifNotLoggedIn>
    <p>You must log in to proceed.</p>
    <form method="POST" action="${resource(file: 'j_spring_security_check')}">
      <table>
        <tr>
          <td>Username:</td><td><g:textField name="j_username"/></td>
        </tr>
        <tr>
          <td>Password:</td><td><input name="j_password" type="password"/></td>
        </tr>
        <tr>
          <td colspan="2"><g:submitButton name="login" value="Login"/></td>
        </tr>
        <tr>
          <td colspan="2">Contact Director Solution Architecture for credentials</td>
        </tr>
      </table>
    </form>

  </sec:ifNotLoggedIn>

</div>
</body>
</html>
